package day_14.homework;
/**
 * @author cheke
 * @date 2021/08/22
 */

public class homework3 {
    public static void main(String[] args) {
        //创建对象
        Cinema cinema = new Cinema();
        //创建线程
        Thread t1 = new Thread(cinema);
        Thread t2 = new Thread(cinema);

        //设置线程名字
        t1.setName("窗口一");
        t2.setName("窗口二");
        //开启线程
        t1.start();
        t2.start();
    }
}
